    <div id="{$id}" class="easyui-dialog" style="width:90%; height:700px;padding:10px 20px"
            closed="true" buttons="#{$id}-buttons">
        <div style="color:red">
        股票/基金买入注意项:<br>
1、买入时间需为开盘前集合竞价时间或中午收盘时间或下午收盘前10分钟；<br>
2、好的买点总在回调充分、阶段性横盘筑底完成并走出止跌走势后；<br>
3、波段投资仓位（中短期策略）不超过基金投资的2成； <br>
4、该品种已经制定买入卖出计划；<br>
5、趋势交易策略时，市场通道需处于上升通道或震荡通道，所选目标当前符合趋势中继或趋势转折形态，买在关键点；（股票超过前期顶点*1%或股票回调最低价格*6%）；<br>
6、网格交易策略时，市场通道需处于上升通道或震荡通道，所选目标当前处于价格略低于价值之时；<br>
<br>
股票/基金卖出注意项：<br>
1、不因涨太高就卖，参考右侧，涨起来无论多贵也先不卖，等从最高点跌破了6%再卖；<br>
2、浮赢超过10%的股票无论任何原因一定要在实亏前卖出；<br>
3、对于长线品种，只有符合股价严重高估、公司基本面恶化、找到更好优质标的，这3个理由中的其中一个，才卖出；<br>
        </div>
        <div class="ftitle">{$_form.name}</div>
        <form id="{$id}-form" method="post" novalidate>
		{foreach from=$_fields item=field key=k}
		{if $field.isField eq 1}
		{if $field.displayType eq "hidden"}
        	<input type="hidden" id="f-{$id}-{$field.name}" name="{$field.name}">
		{elseif $field.displayType eq "password"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input type='password' id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-textbox" {if $field.isRequired eq 1}required{/if} style="width:{$field.name | default:'300px'}">
            </div>
		{elseif $field.displayType eq "combobox"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>	
                <input id="f-{$id}-{$field.name}" name="{$field.name}" style="cursor:hand;width:75%" class="easyui-combobox" {if $field.isRequired eq 1}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.dsUrl}',   
				        onSelect: eventComboboxOnSelect('{$field.name}')" />
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "combotree"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}" style="cursor:hand;width:75%" class="easyui-combotree" {if $field.isRequired eq 1}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.dsUrl}',   
				        onSelect: eventComboboxOnSelect('{$field.name}')" />
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "checkbox"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
				{widget template="common/form_checkbox.tpl" moduleId="`$field.dsModuleId`" serviceId="`$field.dsServiceId`" params="_fieldName=`$field.name`;_valueField=`$field.valueField`;_textField=`$field.textField`" }
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "radio"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
				{widget template="common/form_radio.tpl" moduleId="`$field.dsModuleId`" serviceId="`$field.dsServiceId`" params="_fieldName=`$field.name`;_valueField=`$field.valueField`;_textField=`$field.textField`" }
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType eq "textarea"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <textarea id="f-{$id}-{$field.name}" name="{$field.name}" class="easyui-validatebox" 
                    rows={$field.rows|default:'5'} cols={$field.cols|default:'50'} style="width:75%"
                    {if $field.isRequired eq 1}required{/if}></textarea>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "htmleditor"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
		        <textarea id="f-{$id}-{$field.name}" name="{$field.name}" 
                    rows={$field.rows|default:'5'} cols={$field.cols|default:'50'} style="width: 75%; height: 300px; visibility: hidden;"></textarea>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "date"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-datebox" 
                    data-options="formatter:date_formatter,parser:date_parser" {if $field.isRequired eq 1}required{/if} 
                    style="width:300px" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "datetime"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-datetimebox" 
                    data-options="" {if $field.isRequired eq 1}required{/if} 
                    style="width:300px" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "number"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-numberbox" 
                    data-options="precision:4,groupSeparator:' ',decimalSeparator:'.'" 
                    {if $field.isRequired eq 1}required{/if} style="width:300px" {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "integer"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-numberbox" 
                    data-options="precision:0,groupSeparator:' ',decimalSeparator:'.'" 
                    {if $field.isRequired eq 1}required{/if} style="width:300px" 
                    {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
        {elseif $field.displayType eq "percentage"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-numberbox" suffix="%" 
                    data-options="precision:2,groupSeparator:' ',decimalSeparator:'.'" 
                    {if $field.isRequired eq 1}required{/if} style="width:300px" 
                    {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{elseif $field.displayType neq "reference" and $field.isField neq "false"}
            <div class="fitem" id="div-{$id}-{$field.name}">
                <label>{$field.title}:</label>
                <input id="f-{$id}-{$field.name}" name="{$field.name}"  class="easyui-textbox" 
                    {if $field.isRequired eq 1}required{/if} style="width:{$field.width | default:'75%'}" 
                    {if $field.readonly eq 'true'}editable=false{/if}>
                {if $field.isRequired eq 1}<font color="red">*</font>{/if}
            </div>
		{/if}
		{/if}
		{/foreach}
        </form>
    </div>
    <div id="{$id}-buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveOne('{$id}')" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#{$id}').dialog('close')" style="width:90px">取消</a>
    </div>